<?php
            //get category name
            $category_filter_laber = array();
            $category_filter_id = PostModel::model()->getUnique('category_id');
            if(is_array($category_filter_id)){
                foreach($category_filter_id as $value){
                    $category_model = PCategoryModel::model()->getByID($value['category_id']) ;
                    if($category_model != null){ 
                       $category_filter_laber[$value['category_id']]  = $category_model['name'];
                    }
                }
            }